/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enteties.person;

import java.util.List;
import javax.ejb.Local;
import util.person.SupplierDetails;

/**
 *
 * @author Gebruiker
 */
@Local
public interface SupplierFacadeLocal {

    void create(Supplier supplier);

    void edit(Supplier supplier);

    void remove(Supplier supplier);

    Supplier find(Object id);

    List<Supplier> findAll();

    List<Supplier> findRange(int[] range);

    int count();

    public Integer createSupplier(java.lang.String name, java.lang.Integer number, java.util.Collection<java.lang.Long> telecom, java.lang.Integer languageid, java.lang.Long addressid);

    public boolean exists(java.lang.Integer number);

    public util.person.SupplierDetails findByNumber(java.lang.Integer number);

    public void editSupplier(java.lang.Integer id, java.lang.String name, java.lang.Integer number, java.util.Collection<java.lang.Long> telecom, java.lang.Integer languageid, java.lang.Long addressid);

    public void removeSupplier(java.lang.Integer id);

    public java.util.Collection<util.person.SupplierDetails> findAllSuppliers();

    public util.person.SupplierDetails getSupplierDetails(java.lang.Integer id);

    public void addTelecomToSupplier(java.lang.Integer supplierId, java.lang.Integer telecomId);

    public SupplierDetails convert(Supplier supplier);
    
}
